<h1>{LANG:FILES}</h1>
<form enctype="multipart/form-data" action="{VAR:UPLOADURL}" method="post">
<input type="hidden" name="dir" value="{VAR:DIR}" />
{LANG:FILE}: <input type="file" name="file"><br />
<input type="submit" value="{LANG:UPLOAD_FILE}">
</form>
<p>{VAR:MESSAGE}</p>
<form action="{VAR:NEWFOLDERURL}" method="POST">
  <p>
    {LANG:PATH}:
    {LOOP:PATH}
	  <a href="{VAR:URL}">{VAR:LABEL}</a> 
    {/LOOP:PATH}
    <input name="name" style="width:100px;" />
	<input name="newFolder" type="submit" value="{LANG:NEW}" />
  </p>
</form>
<ul style="list-style-type:none;">
  {LOOP:DIRS}
    <li>
      <img src="{ICON:FOLDER}" />
      <a href="{VAR:URL}">{VAR:LABEL}</a>
    </li>
  {/LOOP:DIRS}
</ul>
{VAR:DELETEFOLDERLINK}
{IF:FILES_EXIST}
  <table>
    <thead>
      <td>{LANG:PREVIEW}</td>
      <td>{LANG:FILENAME}</td>
      <td>{LANG:ACTIONS}</td>
    </thead>
    <tbody>
      {LOOP:FILES}
        <tr>
          <td>{VAR:IMAGE}</td>
          <td>{VAR:FILELINK}</td>
          <td>
            <a href="{VAR:DELETEURL}">
              <img src="{ICON:CROSS}" />
            </a>
          </td>
        </tr>
      {/LOOP:FILES}
    </tbody>
  </table>
{/IF:FILES_EXIST}
{IF:NOFILES}
  <p>{LANG:NO_FILES}</p>
{/IF:NOFILES}